<template>
  <div id="admin">
    <el-container class="home-container" >
      <!-- 这是头部区域 -->
      <el-header>
        <div>
          <!-- <img src="@/assets/1.jpg" alt=""> -->
          <span>七牛云管理端</span>
        </div>
        <el-button type="info" @click="back">退出登录</el-button>
      </el-header>
      <!--  页面主体区-->
      <el-container>
        <!-- 页面侧边栏 -->
        <el-aside width="200px">
          <!-- 侧边栏菜单区域 -->
          <el-menu
            background-color="#333744"
            text-color="#fff"
            active-text-color="#ffd04b"
          >
            <el-submenu index="1">
              <!-- 一级菜单 -->
              <template slot="title">
                <i class="el-icon-location"></i>
                <span>用户管理</span>
              </template>
                <el-menu-item index="1-1">管理用户</el-menu-item>
            </el-submenu>
            <el-menu-item index="2">
              <i class="el-icon-menu"></i>
              <span slot="title">导航二</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <!-- 右侧内容主体 -->
        <el-main>
          <Adminlist></Adminlist>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Adminlist from '@/views/admin/Adminlist'

export default {


  methods: {
    back() {
      window.sessionStorage.clear()
      this.$router.push("/")
    },
  },

  components:{
    Adminlist
  }
}
</script>

<style lang="less" scoped>
#admin {
  width: 100%;
  height: 100%;
}

.home-container {
  height: 100%;
  width: 100%;
}

.el-header {
  // position: fixed;
  // width: 100%;
  background-color: #373d41;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 20px;
  > div {
    display: flex;
    align-items: center;
  }
}

.el-aside {
  background-color: #333744;
}

.el-main {
  background-color: #eaedf1;
}
</style>
